<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>育人管理</title>
		<link rel="stylesheet" type="text/css" href="asserts/bootstrap-3.3.7-dist/css/bootstrap.min.css"/>
	
		<!-- js插件 -->
		<script src="js/jquery-3.2.1.min.js"></script>
		<script src="asserts/bootstrap-3.3.7-dist/js/bootstrap.min.js"></script>
        <link rel="stylesheet" type="text/css" href="asserts/bootstrapValidate/css/bootstrapValidator.min.css"/>
 	   <script src="asserts/bootstrapValidate/js/bootstrapValidator.min.js"></script>
	
	</head>
	<body>
			<!-- 内容展示区 -->
			<div >
					<!-- 导航 -->
					<ol class="breadcrumb">
						<li><i class="fa fa-comment"></i> 育人管理</li>
					</ol>
					<div class="container-fluid">
						<!-- 	内容面板 -->
						<div class="panel panel-default">
							<!-- 控制按钮 -->
							<div class="panel-heading">
									<div class="btn-group">
										<button class="btn btn-primary"><span class="glyphicon glyphicon-pencil"></span>添加</button>
										<button class="btn btn-success"><span class="glyphicon glyphicon-import"></span>导入excel</button>
										<button class="btn btn-info"><span class="glyphicon glyphicon-export"></span>导出excel模板</button>
									</div>
							</div><!-- 控制按钮  end-->
							<div class="panel-body">
								<table class="table table-bordered table-striped">
									<tr>
										<th width="5%"><input type="checkbox" name="" id="selectAll" /></th>
										<th width="5%">ID</th>
										<th width="10%">学期</th>
										<th width="10%">主体名称</th>
										<th width="10%">类别</th>
										<th width="10%">组织者</th>
										<th width="10%">参与范围</th>
										<th width="5%">参与人数</th>
										<th width="5%">活动成效</th>
										<th width="5%">备注</th>
										<th width="30%">操作</th>
									</tr>
									<!-- 数据绑定 -->
									<tr>
										<td><input type="checkbox" name="" class="eid" id="" /></td>
										<td>1</td>
										<td>2019年学期</td>
										<td>主体名称</td>
										<td>类别</td>
										<td>组织者</td>
										<td>参与范围</td>
										<td>10</td>
										<td>好</td>
										<td>说明</td>
										<td>
											<button type="button" class="btn btn-primary" 
												data-toggle="modal" data-target="#mymodal" >
												 <span class="glyphicon glyphicon-edit"></span> 修改</button>
											 <button type="button" class="btn btn-danger"> 
											 	<span class="glyphicon glyphicon-remove"></span> 删除</button>
											  <button type="button" class="btn btn-info" onclick="javascript:location.href='edumanage_detail.html'"> 
											 	<span class="glyphicon glyphicon-list"></span> 详情</button>
										</td>
									</tr>
											
									 
									<!-- 	数据绑定 end -->
								</table>
								<!-- 	分页 -->
									<nav class="text-center">
									<ul class="pagination pagination-sm">
										<li class="disabled"><a href="javascript:void(0)">&laquo;</a></li>
										<li class="active"><a href="">1</a></li>
										<li><a href="">2</a></li>
										<li><a href="">3</a></li>
										<li><a href="">...</a></li>
										<li><a href="">49</a></li>
										<li><a href="">50</a></li>
										<li><a href="">&raquo;</a></li>
									</ul>
									</nav>
							</div>
						</div><!-- 内容面板 end -->
					</div>
			</div><!-- 	内容展示区 end-->
	 
		
		<!-- 弹层组件 添加标签 -->
		<div class="modal fade" id="mymodal">
			<div class="modal-dialog">
				<div class="modal-content">
					<form action=""  class="form-horizontal">
						<div class="modal-header">
							<button type="button" class="close" data-dismiss="modal"><span>&times;</span></button>
							<h4 class="modal-title" id="mylabel">录入信息</h4>
						</div>
						<div class="modal-body">
							  
							  <!-- 学校-->
								<div class="form-group">
									<label class="control-label col-md-3">学期：</label>
									<div class="col-md-8">
										<input type="text" name="term" placeholder="请输入学期" class="form-control"  />
									</div>
								</div>
								  <!-- 学校-->
								<div class="form-group">
									<label class="control-label col-md-3">主体名称：</label>
									<div class="col-md-8">
										<input type="text" name="subject" placeholder="请输入主体名称" class="form-control"  />
									</div>
								</div>
								<div class="form-group">
									<label class="control-label col-md-3">类别：</label>
									<div class="col-md-8">
										<select name="type" class="form-control">
											<option value="">请选择</option>
											<option value="诚信教育">诚信教育</option>
											<option value="励志教育">励志教育</option>
											<option value="感恩教育">感恩教育</option>
											<option value="活动征文">活动征文</option>
											<option value="其他">其他</option>
										</select> 
									</div>
								</div> 
						 
							  	<div class="form-group">
									<label class="control-label col-md-3">组织者：</label>
									<div class="col-md-8">
										<input type="text" name="organization" placeholder="请输入组织者" class="form-control"  />
									</div>
								</div>
									<div class="form-group">
									<label class="control-label col-md-3">参与范围：</label>
									<div class="col-md-8">
										<input type="text" name="scope" placeholder="请输入参与范围" class="form-control"  />
									</div>
								</div>
									<div class="form-group">
									<label class="control-label col-md-3">参与人数：</label>
									<div class="col-md-8">
										<input type="text" name="count" placeholder="请输入参与人数" class="form-control"  />
									</div>
								</div>
									<div class="form-group">
									<label class="control-label col-md-3">活动成效：</label>
									<div class="col-md-8">
										<input type="text" name="activity" placeholder="请输入活动成效" class="form-control"  />
									</div>
								</div>
									<div class="form-group">
									<label class="control-label col-md-3">备注：</label>
									<div class="col-md-8">
										<textarea name="remark" class="form-control"></textarea>
									</div>
								</div>
									<div class="form-group">
									<label class="control-label col-md-3">活动图片1：</label>
									<div class="col-md-8">
										<input type="file" name="file1"/>
									</div>
								</div>
									<div class="form-group">
									<label class="control-label col-md-3">活动图片2：</label>
									<div class="col-md-8">
										<input type="file" name="file2"/>
									</div>
								</div>
									<div class="form-group">
									<label class="control-label col-md-3">活动图片3：</label>
									<div class="col-md-8">
										<input type="file" name="file3"/>
									</div>
								</div>
						</div>
						<div class="modal-footer">
							<button class="btn btn-danger" type="button" data-dismiss="modal">关闭</button>
							<button class="btn btn-primary" type="submit">录入</button>
						</div>
					</form>
				</div>
			</div>
		</div><!-- 弹层组件 添加标签 end -->
	 
	</body>
</html>
<script>
	 $(function () {
	  
        $('form').bootstrapValidator({
　　　　　　　　message: 'This value is not valid',
            　feedbackIcons: {
                　　　　　　　　valid: 'glyphicon glyphicon-ok',
                　　　　　　　　invalid: 'glyphicon glyphicon-remove',
                　　　　　　　　validating: 'glyphicon glyphicon-refresh'
            　　　　　　　　   },
            fields: {
                term: {
                    message: '用户名验证失败',
                    validators: {
                        notEmpty: {
                            message: '学期不能为空'
                        }
                    }
                },
                subject: {
                    validators: {
                        notEmpty: {
                            message: '主题不能为空'
                        }
                    }
                },
                type: {
                    validators: {
                        notEmpty: {
                            message: '类型不能为空'
                        }
                    }
                },
                scope: {
                    validators: {
                        notEmpty: {
                            message: '范围不能为空'
                        }
                    }
                },
                count: {
                    validators: {
                        notEmpty: {
                            message: '参与人数不能为空'
                        }
                    }
                }
            } ,
            submitHandler: function (validator, form, submitButton) {
              // alert("submit");
            }
        });
    });
	
</script>